/*
 * Step 1
 * - Open File
 * - Scan In Numbers
 * - Print Numbers
 */

#include <stdio.h>
#include <stdlib.h>

#define NUMS_PER_FILE 4

int main(int argc, char* argv[])
{
	int i;
  	int numbers[NUMS_PER_FILE];
	FILE *file;

	file = fopen("1.txt", "r");

	printf("\nstart step1.c\n");

	// Scan in numbers
	for(i = 0; i < NUMS_PER_FILE; i++)
	{
		fscanf(file, "%d", &numbers[i]);
	}

	// Print numbers
	for(i = 0; i < NUMS_PER_FILE; i++)
	{
		printf("%d ", numbers[i]);
	}

	printf("\nend step1.c\n");

	return 0;
}



